package com.example.school.mapper;

import com.example.school.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    public List<Student> getStudent(Map<String, Object> params);


    public Student getByUsername(String username);

    Student findByUsername(@Param("username") String username);

    int updatePassword(@Param("username") String username, @Param("newPassword") String newPassword);

    public Student getIdByUsername(String username);


}
